{$CLEO .cs}
0000:

const
sneaky_move   = 0@
metal_gear_style    = 1@
being_chased =  2@ 
Manhunt =  3@ 
Manhunt_alert =  4@ 
Manhunt_alert_v2 =  5@ 
Manhunt_alert_mixed =  6@ 
being_chased_mixed = 7@ 
being_chased_heavy = 8@ 

end 


sneaky_move = audiostream.Load("cleo\surival_game\@Stealthy_Spy.mp3")
audiostream.Loop( sneaky_move , 1 )
metal_gear_style = audiostream.Load("cleo\surival_game\@stealthy_rolling_secret_agent.mp3")
audiostream.Loop( metal_gear_style , 1 )
being_chased = audiostream.Load("cleo\surival_game\@Stealthy_alert.mp3")
audiostream.Loop( being_chased , 1 )

Manhunt = audiostream.Load("cleo\surival_game\@stealthy_manhunt.mp3")
audiostream.Loop( Manhunt , 1 )

Manhunt_alert = audiostream.Load("cleo\surival_game\@stealthy_manhunt_alert_full.mp3")
audiostream.Loop( Manhunt_alert , 1 )

Manhunt_alert_v2 = audiostream.Load("cleo\surival_game\@Stealthy_army_danger.mp3")
audiostream.Loop( Manhunt_alert_v2 , 1 )

Manhunt_alert_mixed = audiostream.Load("cleo\surival_game\@stealthy_manhunt_mixed.mp3")
audiostream.Loop( Manhunt_alert_mixed , 1 )

being_chased_mixed = audiostream.Load("cleo\surival_game\@stealthy_spy_mixed.mp3")
audiostream.Loop( being_chased_mixed , 1 )

being_chased_heavy = audiostream.Load("cleo\surival_game\@Stealthy_army_danger.mp3")
audiostream.Loop( being_chased_heavy , 1 )
  
while $onmission >= 1 
wait 0 
if   
  test_cheat "music1"
then 
   show_text_highpriority "Manhunt played" 3000
    gosub @MUSIC_STOP_ALL
    audiostream.PerformAction( Manhunt , play )
   wait 250
end 
if   
  test_cheat "music2"
then 
    show_text_highpriority "Sneaky move played" 3000
    audiostream.PerformAction( sneaky_move , play )
    gosub @MUSIC_STOP_ALL
   wait 250
end 
if   
  test_cheat "music3"
then 
   show_text_highpriority "Music enabled dynamic style" 3000
    gosub @MUSIC_STOP_ALL
   wait 250
end 
if   
  test_cheat "music0"
then 
   show_text_highpriority "Music disabled" 3000
   
    gosub @MUSIC_STOP_ALL      
   wait 250
end 
 
end 
audiostream.Release( 0@ )
audiostream.Release( 1@ )
audiostream.Release( 2@ )
audiostream.Release( 3@ )
audiostream.Release( 4@ )
audiostream.Release( 5@ )
audiostream.Release( 6@ )
audiostream.Release( 7@ )
audiostream.Release( 8@ )
0A95: save_this_custom_script

0A93: terminate_this_custom_script
:MUSIC_STOP_ALL
 audiostream.PerformAction( 1@ , stop )
 audiostream.PerformAction( 2@ , stop )
 audiostream.PerformAction( 3@ , stop  )
 audiostream.PerformAction( 4@ , stop  )
 audiostream.PerformAction( 5@ , stop  )
 audiostream.PerformAction( 6@ , stop  )
 audiostream.PerformAction( 7@ , stop  ) 
 audiostream.PerformAction( 8@ , stop  ) 
 {
    audiostream.Volume( 1@ ) = 1.0 
    audiostream.Volume( 2@ ) = 1.0 
    audiostream.Volume( 3@ ) = 1.0     
    audiostream.Volume( 4@ ) = 1.0     
    audiostream.Volume( 5@ ) = 1.0     
    audiostream.Volume( 6@ ) = 1.0     
    audiostream.Volume( 7@ ) = 1.0      
                                    }
return 